﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace BaseInfo
{
    [Comment("产品大类")]
    [Table("t_base_productclass")]
    public class ProductClass : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        /// <summary>
        /// 大类编码
        /// </summary>
        [MaxLength(50)]
        [Comment("产品大类编码")]
        public string ClassCode { get; set; }
        /// <summary>
        /// 大类名称
        /// </summary>
        [MaxLength(100)]
        [Comment("产品大类名称")]
        public string ClassName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(100)]
        [Comment("备注")]
        public string Remark { get; set; }

        public bool IsDeleted { get; set; } = false;

        public Guid? TenantId { get; set; }

        
        public ProductClass(Guid keyId)

        {
            this.Id = keyId;
        }

        public ProductClass()
        {

        }
    }
}
